package com.ruoyi.politicalstatus.service.impl;

import com.ruoyi.politicalstatus.domain.ExamPoliticalStatus;
import com.ruoyi.politicalstatus.mapper.ExamPoliticalStatusMapper;
import com.ruoyi.politicalstatus.service.IExamPoliticalStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamPoliticalStatusServiceImpl implements IExamPoliticalStatusService {

    @Autowired
    private ExamPoliticalStatusMapper politicalStatusMapper;

    @Override
    public ExamPoliticalStatus selectPoliticalStatusById(Long id) {
        return politicalStatusMapper.selectPoliticalStatusById(id);
    }

    @Override
    public List<ExamPoliticalStatus> selectPoliticalStatusList() {
        return politicalStatusMapper.selectPoliticalStatusList();
    }

    @Override
    public int insertPoliticalStatus(ExamPoliticalStatus politicalStatus) {
        return politicalStatusMapper.insertPoliticalStatus(politicalStatus);
    }

    @Override
    public int updatePoliticalStatus(ExamPoliticalStatus politicalStatus) {
        return politicalStatusMapper.updatePoliticalStatus(politicalStatus);
    }

    @Override
    public int deletePoliticalStatusById(Long id) {
        return politicalStatusMapper.deletePoliticalStatusById(id);
    }
}
